 |
 |
 |
 |
#239251 - 03/12/03 04:46 PM
Re: [6.2] Remove the edit, reply, and quote hyperlinks
[Re: jacksonm99]
|
Addict
Registered: 08/08/00
Posts: 1802
Loc: North Carolina
|
I've got it figured out. Here is what I did, since I have Quick Reply installed.<br /><br />In showthreaded.tmpl I looked for:<br /><br />[]<br /><table border="0" class="tablesurround"><br /><tr><br /><td class="navigation"><br />$editlinkstart<br /><img src="{$config['images']}/edit.gif" border="0" alt="{$ubbt_lang['PEDIT_HEAD']}" $imagestyle /><br />{$ubbt_lang['EDIT_ICON']}<br />$editlinkstop<br /> <br /></td><br /><td class="navigation"><br />$replylinkstart<br /><img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" $imagestyle /><br />{$ubbt_lang['REPLY_ICON']}<br />$replylinkstop<br /> <br /></td><br /><td class="navigation"><br />$quotelinkstart<br /><img src="{$config['images']}/quote.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" $imagestyle /><br />{$ubbt_lang['QUOTE_ICON']}<br />$quotelinkstop<br /> <br /></td><br /><br /><td class="navigation"><br /><a href="#quickreply"><br /><img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['QUICK_REPLY']}" $imagestyle /><br />{$ubbt_lang['QUICK_REPLY']}<br /></a><br /> <br /></td><br /><br /></tr><br /></table><br />[/]<br />and replaced it with:<br />[]<br />UBBTPRINT;<br /><br />//---------------<br />// Post, Edit, and Reply link start<br /><br />if ($edit == "on") {<br /> <br />echo <<<UBBTPRINT<br /><br /><br /><table border="0" class="tablesurround"><br /><tr><br /><td class="navigation"><br />$editlinkstart<br /><img src="{$config['images']}/edit.gif" border="0" alt="{$ubbt_lang['PEDIT_HEAD']}" $imagestyle /><br />{$ubbt_lang['EDIT_ICON']}<br />$editlinkstop<br /> <br /></td><br /><td class="navigation"><br />$replylinkstart<br /><img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" $imagestyle /><br />{$ubbt_lang['REPLY_ICON']}<br />$replylinkstop<br /> <br /></td><br /><td class="navigation"><br />$quotelinkstart<br /><img src="{$config['images']}/quote.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" $imagestyle /><br />{$ubbt_lang['QUOTE_ICON']}<br />$quotelinkstop<br /> <br /></td><br /><br /><td class="navigation"><br /><a href="#quickreply"><br /><img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['QUICK_REPLY']}" $imagestyle /><br />{$ubbt_lang['QUICK_REPLY']}<br /></a><br /> <br /></td><br /><br /></tr><br /></table><br /><br />UBBTPRINT;<br /><br />}<br /> else {<br /> if ($reply == "on") {<br /> <br />echo <<<UBBTPRINT<br /><br /><table border="0" class="tablesurround"><br /><tr><br /><td class="navigation"><br />$replylinkstart<br /><img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" $imagestyle /><br />{$ubbt_lang['REPLY_ICON']}<br />$replylinkstop<br /> <br /></td><br /><td class="navigation"><br />$quotelinkstart<br /><img src="{$config['images']}/quote.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" $imagestyle /><br />{$ubbt_lang['QUOTE_ICON']}<br />$quotelinkstop<br /> <br /></td><br /><td class="navigation"><br /><a href="#quickreply"><br /><img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['QUICK_REPLY']}" $imagestyle /><br />{$ubbt_lang['QUICK_REPLY']}<br /></a><br /> <br /></td><br /></tr><br /></table><br /><br />UBBTPRINT;<br /> }<br />}<br /><br />//---------------<br />// Post, Edit, and Reply link stop<br /><br />echo <<<UBBTPRINT<br />[/]<br /><br />In showflat.tmpl I found:<br />[]<br /><table class="tablesurround" border="0"><br /><tr><br /><td class="navigation" nowrap="nowrap"><br />{$postrow[$i]['editlinkstart']}<br /><img src="{$config['images']}/edit.gif" border="0" alt="{$ubbt_lang['PEDIT_HEAD']}" width="21" height="14" $imagestyle /><br />{$ubbt_lang['EDIT_ICON']}<br />{$postrow[$i]['editlinkstop']}<br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br />{$postrow[$i]['replylinkstart']}<br /><img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" width="27" height="14" $imagestyle /><br />{$ubbt_lang['REPLY_ICON']}<br />{$postrow[$i]['replylinkstop']}<br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br />{$postrow[$i]['quotelinkstart']}<br /><img src="{$config['images']}/quote.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" width="27" height="14" $imagestyle /><br />{$ubbt_lang['QUOTE_ICON']}<br /><br />UBBTPRINT;<br />if (($user['U_Username']) && (($Open != "C") && ($Open != "M"))) {<br /> $qreplylinkstart = "<a href=\"javascript:quickreply('$i');\">";<br /> $qreplylinkstop = "</a>";<br />} else {<br /> $qreplylinkstart = "";<br /> $qreplylinkstop = "";<br />}<br />echo <<<UBBTPRINT<br /><td class="navigation" nowrap="nowrap"><br />$qreplylinkstart<br /><img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['QUICK_REPLY']}" width="27" height="14" $imagestyle /><br />{$ubbt_lang['QUICK_REPLY_ICON']}<br />$qreplylinkstop<br /> <br /></td><br /></tr><br /></table><br />[/]<br />and replaced it with:<br />[]<br />UBBTPRINT;<br /><br />//---------------<br />// Post, Edit, and Reply link start<br /><br />if ($postrow[$i]['editlinkstart'] != "") {<br /> <br />echo <<<UBBTPRINT<br /><br /><br /><table class="tablesurround" border="0"><br /><tr><br /><td class="navigation" nowrap="nowrap"><br />{$postrow[$i]['editlinkstart']}<br /><img src="{$config['images']}/edit.gif" border="0" alt="{$ubbt_lang['PEDIT_HEAD']}" width="21" height="14" $imagestyle /><br />{$ubbt_lang['EDIT_ICON']}<br />{$postrow[$i]['editlinkstop']}<br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br />{$postrow[$i]['replylinkstart']}<br /><img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" width="27" height="14" $imagestyle /><br />{$ubbt_lang['REPLY_ICON']}<br />{$postrow[$i]['replylinkstop']}<br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br />{$postrow[$i]['quotelinkstart']}<br /><img src="{$config['images']}/quote.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" width="27" height="14" $imagestyle /><br />{$ubbt_lang['QUOTE_ICON']}<br /><br />UBBTPRINT;<br />if (($user['U_Username']) && (($Open != "C") && ($Open != "M"))) {<br /> $qreplylinkstart = "<a href=\"javascript:quickreply('$i');\">";<br /> $qreplylinkstop = "</a>";<br />} else {<br /> $qreplylinkstart = "";<br /> $qreplylinkstop = "";<br />}<br />echo <<<UBBTPRINT<br /><td class="navigation" nowrap="nowrap"><br />$qreplylinkstart<br /><img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['QUICK_REPLY']}" width="27" height="14" $imagestyle /><br />{$ubbt_lang['QUICK_REPLY_ICON']}<br />$qreplylinkstop<br /> <br /></td><br /></tr><br /></table><br /><br />UBBTPRINT;<br /><br />}<br /> else {<br /> if ($reply == "on") {<br /> <br />echo <<<UBBTPRINT<br /><br /><table class="tablesurround" border="0"><br /><tr><br /><td class="navigation"><br />{$postrow[$i]['replylinkstart']}<br /><img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" width="27" height="14" $imagestyle /><br />{$ubbt_lang['REPLY_ICON']}<br />{$postrow[$i]['replylinkstop']}<br /> <br /></td><br /><td class="navigation"><br />{$postrow[$i]['quotelinkstart']}<br /><img src="{$config['images']}/quote.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" width="27" height="14" $imagestyle /><br />{$ubbt_lang['QUOTE_ICON']}<br />{$postrow[$i]['quotelinkstop']}<br /> <br /></td><br /></tr><br /></table><br /><br />UBBTPRINT;<br /> }<br />}<br /><br />//---------------<br />// Post, Edit, and Reply link stop<br /><br />echo <<<UBBTPRINT<br />[/]<br /><br />There is also the post button at the top of the postlist page that would be nice to get rid of too - to complete the removal hack. I have tried to get this to work, but alas, my PHP skills are meager. Here is what I've tried, but has not worked. Can someone tell me where I went wrong?<br /><br />In postlist.tmpl I found:<br />[]<br /><table border="0" class="tablesurround"><br /><tr><br /><td class="navigation" nowrap="nowrap"><br /><br /><!-- postoption is either newpost.gif or greynewpost.gif --><br />$newpoststart<br /><img src="{$config['images']}/$postoption" alt="{$ubbt_lang['MAKE_A_NEW']}" border="0" {$images['newpost']} $imagestyle /><br />{$ubbt_lang['NEW_POST_ICON']}<br />$newpoststop<br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br /><!-- prevoption is either previous.gif or greyprevious.gif --><br />$prevstart<br /><img src="{$config['images']}/$prevoption" alt="{$ubbt_lang['PREV_PAGE']}" border="0" {$images['previous']} $imagestyle /><br />{$ubbt_lang['PREV_ICON']}<br />$prevstop<br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br /><a href="{$config['phpurl']}/ubbthreads.php?Cat=$Cat&C=$C"><br /><img src="{$config['images']}/all.gif" alt="{$ubbt_lang['FORUM_IND']}" border="0" {$images['all']} $imagestyle /><br />{$ubbt_lang['INDEX_ICON']}<br /></a><br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br /><!-- nextoption is either next.gif or greynext.gif --><br />$nextstart<br /><img src="{$config['images']}/$nextoption" alt="{$ubbt_lang['NEXT_PAGE']}" border="0" {$images['next']} $imagestyle /><br />{$ubbt_lang['NEXT_ICON']}<br />$nextstop<br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br /><!-- expandoption is either expand.gif or greyexpand.gif --><br />$expandstart<br /><img src="{$config['images']}/$expandoption" alt="{$ubbt_lang['TEXT_EXP']}" border="0" {$images['expand']} $imagestyle /><br />{$ubbt_lang['EXP_ICON']}<br />$expandstop<br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br /><!-- collapseoption is iether collapse.gif or greycollapse.gif --><br />$collapsestart<br /><img src="{$config['images']}/$collapseoption" alt="{$ubbt_lang['TEXT_COLL']}" border="0" {$images['collapse']} $imagestyle /><br />{$ubbt_lang['COL_ICON']}<br />$collapsestop<br /> <br /></td><br /></tr><br /></table><br />[/]<br />and replaced it with:<br />[]<br />UBBTPRINT;<br /><br />//---------------<br />// Post link start<br /><br />if ($post == "off") {<br /> <br />echo <<<UBBTPRINT<br /><br /><br /><table border="0" class="tablesurround"><br /><tr><br /><td class="navigation" nowrap="nowrap"><br /><!-- prevoption is either previous.gif or greyprevious.gif --><br />$prevstart<br /><img src="{$config['images']}/$prevoption" alt="{$ubbt_lang['PREV_PAGE']}" border="0" {$images['previous']} $imagestyle /><br />{$ubbt_lang['PREV_ICON']}<br />$prevstop<br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br /><a href="{$config['phpurl']}/ubbthreads.php?Cat=$Cat&C=$C"><br /><img src="{$config['images']}/all.gif" alt="{$ubbt_lang['FORUM_IND']}" border="0" {$images['all']} $imagestyle /><br />{$ubbt_lang['INDEX_ICON']}<br /></a><br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br /><!-- nextoption is either next.gif or greynext.gif --><br />$nextstart<br /><img src="{$config['images']}/$nextoption" alt="{$ubbt_lang['NEXT_PAGE']}" border="0" {$images['next']} $imagestyle /><br />{$ubbt_lang['NEXT_ICON']}<br />$nextstop<br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br /><!-- expandoption is either expand.gif or greyexpand.gif --><br />$expandstart<br /><img src="{$config['images']}/$expandoption" alt="{$ubbt_lang['TEXT_EXP']}" border="0" {$images['expand']} $imagestyle /><br />{$ubbt_lang['EXP_ICON']}<br />$expandstop<br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br /><!-- collapseoption is iether collapse.gif or greycollapse.gif --><br />$collapsestart<br /><img src="{$config['images']}/$collapseoption" alt="{$ubbt_lang['TEXT_COLL']}" border="0" {$images['collapse']} $imagestyle /><br />{$ubbt_lang['COL_ICON']}<br />$collapsestop<br /> <br /></td><br /></tr><br /></table><br /><br />UBBTPRINT;<br /><br />}<br /> else {<br /> <br />echo <<<UBBTPRINT<br /><br /><table border="0" class="tablesurround"><br /><tr><br /><td class="navigation" nowrap="nowrap"><br /><br /><!-- postoption is either newpost.gif or greynewpost.gif --><br />$newpoststart<br /><img src="{$config['images']}/$postoption" alt="{$ubbt_lang['MAKE_A_NEW']}" border="0" {$images['newpost']} $imagestyle /><br />{$ubbt_lang['NEW_POST_ICON']}<br />$newpoststop<br /> <br /></td><br /><br /><td class="navigation" nowrap="nowrap"><br /><!-- prevoption is either previous.gif or greyprevious.gif --><br />$prevstart<br /><img src="{$config['images']}/$prevoption" alt="{$ubbt_lang['PREV_PAGE']}" border="0" {$images['previous']} $imagestyle /><br />{$ubbt_lang['PREV_ICON']}<br />$prevstop<br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br /><a href="{$config['phpurl']}/ubbthreads.php?Cat=$Cat&C=$C"><br /><img src="{$config['images']}/all.gif" alt="{$ubbt_lang['FORUM_IND']}" border="0" {$images['all']} $imagestyle /><br />{$ubbt_lang['INDEX_ICON']}<br /></a><br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br /><!-- nextoption is either next.gif or greynext.gif --><br />$nextstart<br /><img src="{$config['images']}/$nextoption" alt="{$ubbt_lang['NEXT_PAGE']}" border="0" {$images['next']} $imagestyle /><br />{$ubbt_lang['NEXT_ICON']}<br />$nextstop<br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br /><!-- expandoption is either expand.gif or greyexpand.gif --><br />$expandstart<br /><img src="{$config['images']}/$expandoption" alt="{$ubbt_lang['TEXT_EXP']}" border="0" {$images['expand']} $imagestyle /><br />{$ubbt_lang['EXP_ICON']}<br />$expandstop<br /> <br /></td><br /><td class="navigation" nowrap="nowrap"><br /><!-- collapseoption is iether collapse.gif or greycollapse.gif --><br />$collapsestart<br /><img src="{$config['images']}/$collapseoption" alt="{$ubbt_lang['TEXT_COLL']}" border="0" {$images['collapse']} $imagestyle /><br />{$ubbt_lang['COL_ICON']}<br />$collapsestop<br /> <br /></td><br /></tr><br /></table><br /><br />UBBTPRINT;<br /> <br />}<br /><br />//---------------<br />// Post link stop<br /><br />echo <<<UBBTPRINT<br />[/]<br />I'm pretty sure, maybe, that I didn't get the variable correct. Is $post correct? I tried all different variables including $newpost, $postoption, and I even got desperate and tried $newpoststart. What else is wrong with it? Lay it on me! <img src="/forum/images/graemlins/grin.gif" alt="" /><br /><br /><br />
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|